/*
 * @Author: xiaosihan
 * @Date: 2024-07-23 21:46:21
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-10-05 18:53:23
 */

// 零件附件
export type PartAttachment = {
  createBy: string;
  createTime: string;
  id: string;
  modelId: string;
  name: string;
  size: string; // 注意：这里的size被假设为字符串，因为它包含非数字的字符（如"KB"）
  updateBy: string; // 允许updateBy为null或string
  updateTime: string; // 允许updateTime为null或string
  url: string;
};

// 零件
export type PartData = {
  attachments: Array<PartAttachment>;
  createBy: string;
  createTime: string;
  id: string;
  name: string;
  size: string;
  status: string;
  thumbnailUrl: string;
  typeId: string;
  typeName: string;
  updateBy: string;
  updateTime: string;
  url: string;
  userId: string;
  userName: string;
  projectId: string;
  userAvatarUrl: string;
  userPhone: string;
};
// 协作标签数据
export type PartLableData = {
  id: string;
  content: string;
  createBy: string;
  createTime: string;
  location: string;
  modelId: string;
  title: string;
  updateBy: string;
  updateTime: string;
  userAvatarUrl: string;
  userId: string;
  userName: string;
  details: Array<{
    content: string;
    createBy: string;
    createTime: string;
    id: string;
    modelCommentId: string;
    replyUserAvatarUrl: string;
    replyUserId: string;
    replyUserName: string;
    replyUserPhone: string;
    updateBy: string;
    updateTime: string;
    userAvatarUrl: string;
    userId: string;
    userName: string;
    userPhone: string;
  }>;
};

// 协作项目数据
export type ProjectCollaborationData = {
  id: string;
  createTime: string;
  createBy: string;
  updateTime: string;
  updateBy: string;
  userId: string;
  name: string;
  description: string;
  status: number;
  isPublic: number;
};

// 用户信息
export type UserData = {
  name: string;
  Phone: string;
  id: string;
  avatarUrl: string;
};

//工厂端的用户信息
export type FactoryUser = {
  name: string;
  Phone: string;
  id: string;
  avatarUrl: string;
};
